<?php

use Illuminate\Support\Facades\Route;
use Modules\Customer\Http\Controllers\CustomerController;
use Modules\Customer\Http\Controllers\AuthController;
use Modules\Customer\Http\Controllers\HomeController;

Route::prefix('customer')->group(function(){

    Route::post("add", [CustomerController::class, "add"]);
    Route::get("list", [CustomerController::class, "index"]);
    Route::post("update", [CustomerController::class, "update"]);
    Route::post("delete", [CustomerController::class, "delete"]);

    // 小程序接口
    Route::post("login", [AuthController::class, "login"])->withoutMiddleware(config('catch.route.middlewares'));
    Route::post("register", [AuthController::class, "register"])->withoutMiddleware(config('catch.route.middlewares'));

    Route::get("home", [HomeController::class, "homePage"]); //首页
    Route::get("noticeList", [HomeController::class, "noticeList"]); //公告列表
    Route::get("noticeInfo", [HomeController::class, "noticeInfo"]); //公告详情
    Route::get("teacherList", [HomeController::class, "teacherList"]); //我的教师列表
    Route::get("teacherInfo", [HomeController::class, "teacherInfo"]); //教师详情


});
